package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.PkAppRuntime;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLIntegerTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class PkAppRuntimeProxy extends AbstractProxyEntity<PkAppRuntimeProxy, PkAppRuntime> {

    private static final Class<PkAppRuntime> entityClass = PkAppRuntime.class;

    public static final PkAppRuntimeProxy TABLE = createTable().createEmpty();

    public static PkAppRuntimeProxy createTable() {
        return new PkAppRuntimeProxy();
    }

    public PkAppRuntimeProxy() {
    }

    /**
     * {@link PkAppRuntime#getCategoryId}
     */
    public SQLStringTypeColumn<PkAppRuntimeProxy> categoryId() {
        return getStringTypeColumn("categoryId");
    }

    /**
     * {@link PkAppRuntime#getRuntimeCode}
     */
    public SQLStringTypeColumn<PkAppRuntimeProxy> runtimeCode() {
        return getStringTypeColumn("runtimeCode");
    }

    /**
     * {@link PkAppRuntime#getRuntimeName}
     */
    public SQLStringTypeColumn<PkAppRuntimeProxy> runtimeName() {
        return getStringTypeColumn("runtimeName");
    }

    /**
     * {@link PkAppRuntime#getRuntimeSeq}
     */
    public SQLIntegerTypeColumn<PkAppRuntimeProxy> runtimeSeq() {
        return getIntegerTypeColumn("runtimeSeq");
    }

    /**
     * {@link PkAppRuntime#getDownloadUrl}
     */
    public SQLStringTypeColumn<PkAppRuntimeProxy> downloadUrl() {
        return getStringTypeColumn("downloadUrl");
    }

    @Override
    public Class<PkAppRuntime> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public PkAppRuntimeProxyFetcher FETCHER = new PkAppRuntimeProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class PkAppRuntimeProxyFetcher extends AbstractFetcher<PkAppRuntimeProxy, PkAppRuntime, PkAppRuntimeProxyFetcher> {

        public PkAppRuntimeProxyFetcher(PkAppRuntimeProxy proxy, PkAppRuntimeProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link PkAppRuntime#getCategoryId}
         */
        public PkAppRuntimeProxyFetcher categoryId() {
            return add(getProxy().categoryId());
        }

        /**
         * {@link PkAppRuntime#getRuntimeCode}
         */
        public PkAppRuntimeProxyFetcher runtimeCode() {
            return add(getProxy().runtimeCode());
        }

        /**
         * {@link PkAppRuntime#getRuntimeName}
         */
        public PkAppRuntimeProxyFetcher runtimeName() {
            return add(getProxy().runtimeName());
        }

        /**
         * {@link PkAppRuntime#getRuntimeSeq}
         */
        public PkAppRuntimeProxyFetcher runtimeSeq() {
            return add(getProxy().runtimeSeq());
        }

        /**
         * {@link PkAppRuntime#getDownloadUrl}
         */
        public PkAppRuntimeProxyFetcher downloadUrl() {
            return add(getProxy().downloadUrl());
        }

        @Override
        protected PkAppRuntimeProxyFetcher createFetcher(PkAppRuntimeProxy cp, AbstractFetcher<PkAppRuntimeProxy, PkAppRuntime, PkAppRuntimeProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new PkAppRuntimeProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
